﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JibberJabber.PartDesigners;

namespace JibberJabber.LivePreviews
{
    internal class SpeakerPreview : PreviewTemplate
    {
        SpeakerDesigner sd;

        internal SpeakerPreview(SpeakerDesigner sd)
        {
            this.sd = sd;
            checkOk(sd);
        }

        // Remember: configureTempConversation has Exceptions neatly handled,
        // the constructor does not!
        protected override void configureTempConversation(TempConversation tc)
        {
            tc.SetSpeaker(sd);
        }
    }
}
